import http from '../index';
// 在这个文件里面写 所有的请求 的函数
export const loginApi = (params: LoginParams): RSP<string> => http.post('/1024/login', params)

export const homeDataApi = (): RSP<HomeData> => http.get('/6666')

export const selectDataApi = (actionCode: string): RSP<SelectData[]> => http.get(`/1314/${actionCode}/all`)

export const practiceListApi = (params: PracticeParams): RSP<PracticeData[]> => http.post('/1314', params)

export const getAllSubjectsApi = (): RSP<Exam[]> => http.get('/6666/field');

export const changeSbujectApi = (actionCode: string): RSP<any> => http.post(`/6666/${actionCode}`)